.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100px;
  height: 40px;
  padding: 8px 12x;
  border-radius: 8px;
  border: none;
  background-color: var(--button-primary-bg);
  color: var(--button-primary-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;

  &:hover {
    background-color: var(--text-primary);
  }

  &:focus {
    outline: none;
    box-shadow:
      0 0 0 2px white,
      0 0 0 4px #1f2937;
  }

  &-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
  }

  &::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    border-radius: 50%;
    transform: scale(1);
    animation: ripple 600ms linear;
    display: none;
  }

  &:active::after {
    display: block;
  }
}

.record-button-container {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  background: transparent;
  justify-content: space-between;
}

.record-controls {
  display: flex;
  align-items: center;
}

.record-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.record-icon {
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.record-icon.recording {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.clear-button-modern {
  width: 100% !important;
  background-color: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  padding: 0.375rem 1rem !important;
  border-radius: 0.375rem !important;
  transition: background-color 200ms ease-in-out !important;
}

.clear-button-modern:hover {
  background-color: var(--border-color) !important;
}

/* Theme toggle button styling */
.theme-toggle {
  position: relative;
  width: 48px;
  height: 24px;
  border-radius: 16px;
  border: 2px solid var(--border-color);
  background-color: var(--bg-tertiary);
  cursor: pointer;
  transition: all 300ms ease;
  padding: 2px;
}

.theme-toggle.dark {
  background-color: var(--bg-primary);
  border-color: var(--border-color-dark);
}

.theme-toggle-slider {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-toggle.dark .theme-toggle-slider {
  transform: translateX(24px);
  background-color: var(--color-primary);
}

.theme-toggle-icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  pointer-events: none;
}

.theme-toggle-icon {
  width: 14px;
  height: 14px;
  transition: color 300ms ease;
}

.theme-toggle.dark .theme-toggle-icon.moon {
  color: var(--color-primary);
}

.theme-toggle .theme-toggle-icon.sun {
  color: var(--color-primary);
}
